Radar Host Communication library  2020.08.13
EndpointRadarDeviceStatus.h
Go to the documentation of this file.
1 
26 /* ===========================================================================
27 ** Copyright (C) 2016-2019 Infineon Technologies AG
28 ** All rights reserved.
29 ** ===========================================================================
30 **
31 ** ===========================================================================
32 ** This document contains proprietary information of Infineon Technologies AG.
33 ** Passing on and copying of this document, and communication of its contents
34 ** is not permitted without Infineon's prior written authorisation.
35 ** ===========================================================================
36 */
37 
38 #ifndef ENDPOINTDEVICESTATUS_H_INCLUDED
39 #define ENDPOINTDEVICESTATUS_H_INCLUDED
40 
41 /*
42 ==============================================================================
43  1. INCLUDE FILES
44 ==============================================================================
45 */
46 #include <stdint.h>
48 
49 /* Enable C linkage if header is included in C++ files */
50 #ifdef __cplusplus
51 extern "C"
52 {
53 #endif /* __cplusplus */
54 
63 /*
64 ==============================================================================
65  3. TYPES
66 ==============================================================================
67 */
68 
69 typedef struct {
70  uint8_t error_type; // type of error message: info, warning, error
71  uint16_t error_code; // error code
72  uint32_t frame_count;
73  uint16_t error_msg_size; // the size of error msg
74  char *message; // error msg
76 
77 /*
78 ==============================================================================
79  5. FUNCTION PROTOTYPES AND INLINE FUNCTIONS
80 ==============================================================================
81 */
82 
100 int32_t ep_device_status_is_compatible_endpoint(int32_t protocol_handle,
101  uint8_t endpoint);
102 
103 typedef void(*Callback_Device_Status_t)(void* context,
104  int32_t protocol_handle,
105  uint8_t endpoint,
106  const device_status_response_t *pStatus);
107 
108 /*
109 ==============================================================================
110  7. EXPORTED FUNCTIONS
111 ==============================================================================
112 */
113 
134  void* context);
135 
136 
137 int32_t ep_device_status_get_status(int32_t protocol_handle, uint8_t endpoint);
138 
139 
140 
143 /* --- Close open blocks -------------------------------------------------- */
144 
145 /* Disable C linkage for C++ files */
146 #ifdef __cplusplus
147 } /* extern "C" */
148 #endif /* __cplusplus */
149 
150 /* End of include guard */
151 #endif /* ENDPOINTDEVICESTATUS_H_INCLUDED */
152 
153 /* --- End of File -------------------------------------------------------- */
void(* Callback_Device_Status_t)(void *context, int32_t protocol_handle, uint8_t endpoint, const device_status_response_t *pStatus)
This file defines the status codes of the radar endpoints.
void ep_device_status_set_callback_mcu_status(Callback_Device_Status_t callback, void *context)
This functions registers a callback device status.
int32_t ep_device_status_get_status(int32_t protocol_handle, uint8_t endpoint)
int32_t ep_device_status_is_compatible_endpoint(int32_t protocol_handle, uint8_t endpoint)
This function checks if an endpoint in a device is a MCU Status endpoint.